package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsBasicOrderStatusMapper;
import com.scau402.system.domain.WmsBasicOrderStatus;
import com.scau402.system.service.IWmsBasicOrderStatusService;

/**
 * 订单状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsBasicOrderStatusServiceImpl implements IWmsBasicOrderStatusService 
{
    @Autowired
    private WmsBasicOrderStatusMapper wmsBasicOrderStatusMapper;

    /**
     * 查询订单状态
     * 
     * @param status 订单状态主键
     * @return 订单状态
     */
    @Override
    public WmsBasicOrderStatus selectWmsBasicOrderStatusByStatus(String status)
    {
        return wmsBasicOrderStatusMapper.selectWmsBasicOrderStatusByStatus(status);
    }

    /**
     * 查询订单状态列表
     * 
     * @param wmsBasicOrderStatus 订单状态
     * @return 订单状态
     */
    @Override
    public List<WmsBasicOrderStatus> selectWmsBasicOrderStatusList(WmsBasicOrderStatus wmsBasicOrderStatus)
    {
        return wmsBasicOrderStatusMapper.selectWmsBasicOrderStatusList(wmsBasicOrderStatus);
    }

    /**
     * 新增订单状态
     * 
     * @param wmsBasicOrderStatus 订单状态
     * @return 结果
     */
    @Override
    public int insertWmsBasicOrderStatus(WmsBasicOrderStatus wmsBasicOrderStatus)
    {
        return wmsBasicOrderStatusMapper.insertWmsBasicOrderStatus(wmsBasicOrderStatus);
    }

    /**
     * 修改订单状态
     * 
     * @param wmsBasicOrderStatus 订单状态
     * @return 结果
     */
    @Override
    public int updateWmsBasicOrderStatus(WmsBasicOrderStatus wmsBasicOrderStatus)
    {
        return wmsBasicOrderStatusMapper.updateWmsBasicOrderStatus(wmsBasicOrderStatus);
    }

    /**
     * 批量删除订单状态
     * 
     * @param statuss 需要删除的订单状态主键
     * @return 结果
     */
    @Override
    public int deleteWmsBasicOrderStatusByStatuss(String[] statuss)
    {
        return wmsBasicOrderStatusMapper.deleteWmsBasicOrderStatusByStatuss(statuss);
    }

    /**
     * 删除订单状态信息
     * 
     * @param status 订单状态主键
     * @return 结果
     */
    @Override
    public int deleteWmsBasicOrderStatusByStatus(String status)
    {
        return wmsBasicOrderStatusMapper.deleteWmsBasicOrderStatusByStatus(status);
    }
}
